<template>
  <div>
    <el-row>
      <el-col>
        <el-table
          :data="tableData"
          style="width: 100%"
          border>
          <el-table-column
            prop="date"
            align="center"
            label="日期">
          </el-table-column>
          <el-table-column
            prop="name"
            align="center"
            label="课程名称">
          </el-table-column>
          <el-table-column
            prop="province"
            align="center"
            label="所在实训室">
          </el-table-column>
          <el-table-column
            prop="city"
            align="center"
            label="面向专业">
          </el-table-column>
          <el-table-column
            prop="address"
            align="center"
            label="班级">
          </el-table-column>
          <el-table-column
            prop="zip"
            align="center"
            label="开课时间">
          </el-table-column>
          <el-table-column
              prop="zip2"
              align="center"
              label="下课时间">
          </el-table-column>
          <el-table-column
            align="center"
            label="操作">
            <template slot-scope="scope">
              <el-button @click="handleClick(scope.row)" type="text" size="small">查看评价</el-button>
            </template>
          </el-table-column>
        </el-table>
        <el-pagination
          background
          style="margin-top: 10px;text-align: right"
          layout="prev, pager, next"
          :total="1000">
        </el-pagination>
      </el-col>
    </el-row>
    <el-dialog title="XX课程" :visible.sync="dialogFormVisible" width="40%">
      <div>
        <span>头上一片晴天，心中一个想念</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">少年包青天</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
        <span>为了无法计算的价值</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">阿里云</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
        <span>头上一片晴天，心中一个想念</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">少年包青天</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
        <span>为了无法计算的价值</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">阿里云</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
        <span>头上一片晴天，心中一个想念</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">少年包青天</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
        <span>为了无法计算的价值</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">阿里云</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
        <span>头上一片晴天，心中一个想念</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">少年包青天</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
        <span>为了无法计算的价值</span>
        <el-divider content-position="right"><span style="color:#409eff; padding-right: 5px">阿里云</span>|签到退时间：2020-08-04:10:00--2020-08-04:12:00</el-divider>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    name: "courseEvaluation",
    data() {
      return {
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          province: '陕西',
          city: '计算机科学与应用',
          address: '陕西省西安市',
          zip: "2016-05-02 10:00",
          zip2: "2016-05-02 10:00"
        }, {
          date: '2016-05-04',
          name: '王小虎',
          province: '陕西',
          city: '计算机科学与应用',
          address: '陕西省西安市',
          zip: "2016-05-02 10:00",
          zip2: "2016-05-02 10:00"
        }, {
          date: '2016-05-01',
          name: '王小虎',
          province: '陕西',
          city: '计算机科学与应用',
          address: '陕西省西安市',
          zip: "2016-05-02 10:00",
          zip2: "2016-05-02 10:00"
        }, {
          date: '2016-05-03',
          name: '王小虎',
          province: '陕西',
          city: '计算机科学与应用',
          address: '陕西省西安市',
          zip: "2016-05-02 10:00",
          zip2: "2016-05-02 10:00"
        }],
        dialogFormVisible: false,
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
        formLabelWidth: '120px'
      }
    },
    methods: {
      handleClick(row) {
        console.log(row);
        this.dialogFormVisible = true
      }
    },
  }
</script>

<style scoped>

</style>
